package com.cgc999.host.activity;

import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;

import com.cgc999.host.R;
import com.trello.rxlifecycle3.components.support.RxAppCompatActivity;

public class TestActivity extends RxAppCompatActivity {
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);
        findViewById(R.id.request).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
//                new NBANoSingletonService()
//                        .getNBAInfo("6949e822e6844ae6453fca0cf83379d3")
//                        .subscribeOn(Schedulers.io())
//                        .observeOn(AndroidSchedulers.mainThread())
//                        .compose(TestActivity.this.bindToLifecycle())
//                        .subscribe(new BaseObserver<NBAJEntity>() {
//                            @Override
//                            public void onSuccess(NBAJEntity response) {
//                                Toast.makeText(TestActivity.this, response.getMsg(), Toast.LENGTH_SHORT).show();
//                            }
//                        });
            }
        });
    }
}
